#include <bits/stdc++.h>
using namespace std;

const int MAXN = 50 + 5;
int a[MAXN];

int main()
{
#ifdef LOCAL
    freopen("PREV-27.in", "r", stdin);
#endif
    ios::sync_with_stdio(false), cin.tie(0), cout.tie(0);
    int n; cin >> n;
    for(int i = 0; i < n; ++i)
        cin >> a[i];
    int ans = 1;
    if(a[0] > 0)
    {
        for(int i = 1; i < n; ++i)
            if(abs(a[i]) > a[0] && a[i] < 0) ans += 1;
        if(ans != 1) for(int i = 1; i < n; ++i)
            if(abs(a[i]) < a[0] && a[i] > 0 ) ans += 1;
        cout << ans << endl;
    }
    else
    {
        for(int i = 1; i < n; ++i)
            if(abs(a[i]) < -a[0] && a[i] > 0) ans += 1;
        if(ans != 1) for(int i = 1; i < n; ++i)
            if(abs(a[i]) > -a[0] && a[i] < 0) ans += 1;
        cout << ans << endl;
    }

    return 0;
}